x86: make hypercall preemption checks consistent
authorJan Beulich <jbeulich@suse.com>
Thu, 13 Mar 2014 13:27:51 +0000 (14:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 13 Mar 2014 13:27:51 +0000 (14:27 +0100)
commitfd7bfce0395ace266159760e35dc49f7af3b90ce
tree5ef76600dcbdb1a800fefd3207462fb2fa23f730
parent8c0eed2cc8d8a2ccccdffe4c386b625b672dc12a
x86: make hypercall preemption checks consistent

- never preempt on the first iteration (ensure forward progress)
- never preempt on the last iteration (pointless/wasteful)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/mm.c
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/traps.c
xen/arch/x86/x86_64/compat/traps.c